home *** CD-ROM | disk | FTP | other *** search
-
- {
- exec/alerts.i
- }
-
- { ********************************************************************
- *
- * Format of the alert error number:
- *
- * +-+-------------+----------------+--------------------------------+
- * |D| SubSysId | General Error | SubSystem Specific Error |
- * +-+-------------+----------------+--------------------------------+
- * 1 7 bits 8 bits 16 bits
- *
- * D: DeadEnd alert
- * SubSysId: indicates ROM subsystem number.
- * General Error: roughly indicates what the error was
- * Specific Error: indicates more detail
- *********************************************************************}
-
- const
- {*********************************************************************
- *
- * Hardware/CPU specific alerts: They may show without the 8 at the
- * front of the number. These are CPU/68000 specific. See 68$0
- * programmer's manuals for more details.
- *
- *********************************************************************}
- ACPU_BusErr = $80000002; { Hardware bus fault/access error }
- ACPU_AddressErr = $80000003; { Illegal address access (ie: odd) }
- ACPU_InstErr = $80000004; { Illegal instruction }
- ACPU_DivZero = $80000005; { Divide by zero }
- ACPU_CHK = $80000006; { Check instruction error }
- ACPU_TRAPV = $80000007; { TrapV instruction error }
- ACPU_PrivErr = $80000008; { Privilege violation error }
- ACPU_Trace = $80000009; { Trace error }
- ACPU_LineA = $8000000A; { Line 1010 Emulator error }
- ACPU_LineF = $8000000B; { Line 1111 Emulator error }
- ACPU_Format = $8000000E; { Stack frame format error }
- ACPU_Spurious = $80000018; { Spurious interrupt error }
- ACPU_AutoVec1 = $80000019; { AutoVector Level 1 interrupt error }
- ACPU_AutoVec2 = $8000001A; { AutoVector Level 2 interrupt error }
- ACPU_AutoVec3 = $8000001B; { AutoVector Level 3 interrupt error }
- ACPU_AutoVec4 = $8000001C; { AutoVector Level 4 interrupt error }
- ACPU_AutoVec5 = $8000001D; { AutoVector Level 5 interrupt error }
- ACPU_AutoVec6 = $8000001E; { AutoVector Level 6 interrupt error }
- ACPU_AutoVec7 = $8000001F; { AutoVector Level 7 interrupt error }
-
-
- { ********************************************************************
- *
- * General Alerts
- *
- * For example: timer.device cannot open math.library would be $05038015
- *
- * Alert(AN_TimerDev|AG_OpenLib|AO_MathLib);
- *
- ********************************************************************}
-
-
- CONST
-
- { ------ alert types }
- AT_DeadEnd = $80000000;
- AT_Recovery = $00000000;
-
-
- { ------ general purpose alert codes }
- AG_NoMemory = $00010000;
- AG_MakeLib = $00020000;
- AG_OpenLib = $00030000;
- AG_OpenDev = $00040000;
- AG_OpenRes = $00050000;
- AG_IOError = $00060000;
- AG_NoSignal = $00070000;
- AG_BadParm = $00080000;
- AG_CloseLib = $00090000; { usually too many closes }
- AG_CloseDev = $000A0000; { or a mismatched close }
- AG_ProcCreate = $000B0000; { Process creation failed }
-
-
- { ------ alert objects: }
- AO_ExecLib = $00008001;
- AO_GraphicsLib = $00008002;
- AO_LayersLib = $00008003;
- AO_Intuition = $00008004;
- AO_MathLib = $00008005;
- AO_DOSLib = $00008007;
- AO_RAMLib = $00008008;
- AO_IconLib = $00008009;
- AO_ExpansionLib = $0000800A;
- AO_DiskfontLib = $0000800B;
- AO_UtilityLib = $0000800C;
- AO_KeyMapLib = $0000800D;
-
- AO_AudioDev = $00008010;
- AO_ConsoleDev = $00008011;
- AO_GamePortDev = $00008012;
- AO_KeyboardDev = $00008013;
- AO_TrackDiskDev = $00008014;
- AO_TimerDev = $00008015;
-
- AO_CIARsrc = $00008020;
- AO_DiskRsrc = $00008021;
- AO_MiscRsrc = $00008022;
-
- AO_BootStrap = $00008030;
- AO_Workbench = $00008031;
- AO_DiskCopy = $00008032;
- AO_GadTools = $00008033;
- AO_Unknown = $00008035;
-
-
-
- { ********************************************************************
- *
- * Specific Alerts:
- *
- ********************************************************************}
-
- { ------ exec.library }
-
- AN_ExecLib = $01000000;
- AN_ExcptVect = $01000001; { 68000 exception vector checksum (obs.) }
- AN_BaseChkSum = $01000002; { Execbase checksum (obs.) }
- AN_LibChkSum = $01000003; { Library checksum failure }
-
- AN_MemCorrupt = $81000005; { Corrupt memory list detected in FreeMem }
- AN_IntrMem = $81000006; { No memory for interrupt servers }
- AN_InitAPtr = $01000007; { InitStruct() of an APTR source (obs.) }
- AN_SemCorrupt = $01000008; { A semaphore is in an illegal state
- at ReleaseSempahore() }
- AN_FreeTwice = $01000009; { Freeing memory already freed }
- AN_BogusExcpt = $8100000A; { illegal 68k exception taken (obs.) }
- AN_IOUsedTwice = $0100000B; { Attempt to reuse active IORequest }
- AN_MemoryInsane = $0100000C; { Sanity check on memory list failed
- during AvailMem(MEMF_LARGEST) }
- AN_IOAfterClose = $0100000D; { IO attempted on closed IORequest }
- AN_StackProbe = $0100000E; { Stack appears to extend out of range }
- AN_BadFreeAddr = $0100000F; { Memory header not located. [ Usually an
- invalid address passed to FreeMem() ] }
- AN_BadSemaphore = $01000010; { An attempt was made to use the old
- message semaphores. }
-
- { ------ graphics.library }
-
- AN_GraphicsLib = $02000000;
- AN_GfxNoMem = $82010000; { graphics out of memory }
- AN_GfxNoMemMspc = $82010001; { MonitorSpec alloc, no memory }
- AN_LongFrame = $82010006; { long frame, no memory }
- AN_ShortFrame = $82010007; { short frame, no memory }
- AN_TextTmpRas = $02010009; { text, no memory for TmpRas }
- AN_BltBitMap = $8201000A; { BltBitMap, no memory }
- AN_RegionMemory = $8201000B; { regions, memory not available }
- AN_MakeVPort = $82010030; { MakeVPort, no memory }
- AN_GfxNewError = $0200000C;
- AN_GfxFreeError = $0200000D;
-
- AN_GfxNoLCM = $82011234; { emergency memory not available }
-
- AN_ObsoleteFont = $02000401; { unsupported font description used }
-
- { ------ layers.library }
-
- AN_LayersLib = $03000000;
- AN_LayersNoMem = $83010000; { layers out of memory }
-
- { ------ intuition.library }
- AN_Intuition = $04000000;
- AN_GadgetType = $84000001; { unknown gadget type }
- AN_BadGadget = $04000001; { Recovery form of AN_GadgetType }
- AN_CreatePort = $84010002; { create port, no memory }
- AN_ItemAlloc = $04010003; { item plane alloc, no memory }
- AN_SubAlloc = $04010004; { sub alloc, no memory }
- AN_PlaneAlloc = $84010005; { plane alloc, no memory }
- AN_ItemBoxTop = $84000006; { item box top < RelZero }
- AN_OpenScreen = $84010007; { open screen, no memory }
- AN_OpenScrnRast = $84010008; { open screen, raster alloc, no memory }
- AN_SysScrnType = $84000009; { open sys screen, unknown type }
- AN_AddSWGadget = $8401000A; { add SW gadgets, no memory }
- AN_OpenWindow = $8401000B; { open window, no memory }
- AN_BadState = $8400000C; { Bad State Return entering Intuition }
- AN_BadMessage = $8400000D; { Bad Message received by IDCMP }
- AN_WeirdEcho = $8400000E; { Weird echo causing incomprehension }
- AN_NoConsole = $8400000F; { couldn't open the Console Device }
- AN_NoISem = $04000010; { Intuition skipped obtaining a sem }
- AN_ISemOrder = $04000011; { Intuition obtained a sem in bad order }
-
- { ------ math.library }
-
- AN_MathLib = $05000000;
-
- { ------ dos.library }
-
- AN_DOSLib = $07000000;
- AN_StartMem = $07010001; { no memory at startup }
- AN_EndTask = $07000002; { EndTask didn't }
- AN_QPktFail = $07000003; { Qpkt failure }
- AN_AsyncPkt = $07000004; { Unexpected packet received }
- AN_FreeVec = $07000005; { Freevec failed }
- AN_DiskBlkSeq = $07000006; { Disk block sequence error }
- AN_BitMap = $07000007; { Bitmap corrupt }
- AN_KeyFree = $07000008; { Key already free }
- AN_BadChkSum = $07000009; { Invalid checksum }
- AN_DiskError = $0700000A; { Disk Error }
- AN_KeyRange = $0700000B; { Key out of range }
- AN_BadOverlay = $0700000C; { Bad overlay }
- AN_BadInitFunc = $0700000D; { Invalid init packet for cli/shell }
- AN_FileReclosed = $0700000E; { A filehandle was closed more than once }
-
- { ------ ramlib.library }
-
- AN_RAMLib = $08000000;
- AN_BadSegList = $08000001; { no overlays in library seglists }
-
- { ------ icon.library }
-
- AN_IconLib = $09000000;
-
- { ------ expansion.library }
-
- AN_ExpansionLib = $0A000000;
- AN_BadExpansionFree = $0A000001; { freeed free region }
-
- { ------ diskfont.library }
-
- AN_DiskfontLib = $0B000000;
-
- { ------ audio.device }
-
- AN_AudioDev = $10000000;
-
- { ------ console.device }
-
- AN_ConsoleDev = $11000000;
- AN_NoWindow = $11000001; { Console can't open initial window }
-
- { ------ gameport.device }
-
- AN_GamePortDev = $12000000;
-
- { ------ keyboard.device }
-
- AN_KeyboardDev = $13000000;
-
- { ------ trackdisk.device }
-
- AN_TrackDiskDev = $14000000;
- AN_TDCalibSeek = $14000001; { calibrate: seek error }
- AN_TDDelay = $14000002; { delay: error on timer wait }
-
- { ------ timer.device }
-
- AN_TimerDev = $15000000;
- AN_TMBadReq = $15000001; { bad request }
- AN_TMBadSupply = $15000002; { power supply -- no 50/60Hz ticks }
-
- { ------ cia.resource }
-
- AN_CIARsrc = $20000000;
-
- { ------ disk.resource }
-
- AN_DiskRsrc = $21000000;
- AN_DRHasDisk = $21000001; { get unit: already has disk }
- AN_DRIntNoAct = $21000002; { interrupt: no active unit }
-
- { ------ misc.resource }
-
- AN_MiscRsrc = $22000000;
-
- { ------ bootstrap }
-
- AN_BootStrap = $30000000;
- AN_BootError = $30000001; { boot code returned an error }
-
- { ------ Workbench }
-
- AN_Workbench = $31000000;
- AN_NoFonts = $B1000001;
- AN_WBBadStartupMsg1 = $31000001;
- AN_WBBadStartupMsg2 = $31000002;
- AN_WBBadIOMsg = $31000003;
-
- AN_WBReLayoutToolMenu = $B1010009;
-
- { ------ DiskCopy }
-
- AN_DiskCopy = $32000000;
-
- { ------ toolkit for Intuition }
-
- AN_GadTools = $33000000;
-
- { ------ System utility library }
-
- AN_UtilityLib = $34000000;
-
- { ------ For use by any application that needs it }
-
- AN_Unknown = $35000000;
-
-
-
- Procedure Alert(alertNum : Integer; parameters : Address);
- External;
-
-
-